#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: EmailMessage.cs
 * Purpose: ViewModel class for Email Message
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  08/13/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace Jb.Web.ViewModels
{
    [Serializable]
	public class EmailMessageViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a Message")]
        [StringLength(8000, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Message")] 
		public String Message	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Subject")]
        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Subject")] 
		public String Subject	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a From Email")]
        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "From Email")] 
		public String FromEmail	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a To Email")]
        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "To Email")] 
		public String ToEmail	{ get; set; }
            
        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "C C")] 
		public String CC	{ get; set; }
            
        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "B C C")] 
		public String BCC	{ get; set; }
            
        [Required(ErrorMessage= "Please Choose Is Sent?")]         
        [Display(Name = "Is Sent")] 
		public String IsSent	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Created")]
        [Display(Name = "Created")] 
		public String Created	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Attempted On")]
        [Display(Name = "Attempted On")] 
		public String AttemptedOn	{ get; set; }
	}
}

